package com.zkzx.company.api.controller.workbench;

import com.zkzx.company.api.controller.BaseController;
import com.zkzx.company.api.controller.workbench.vo.WorkbenchVO;
import com.zkzx.company.api.service.Workbench.WorkbenchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;


/**
 * @author young Email:yanghui@zkraising.com
 * @description
 * @company 北京中科智兴物联科技有限公司 @版权所有
 * @since 2021年05月08日 10时31分
 */
@RestController
@Validated
@Api( tags="工作台")
@RequestMapping(value = "/workbench")
public class WorkbenchController extends BaseController {


    @Autowired
    private WorkbenchService workbenchService;


    @GetMapping
    @ResponseStatus(HttpStatus.OK)
    @ApiOperation(value = "获取企业详细", notes = "获取企业详细")
    public WorkbenchVO getById() {
        // 获取企业详细 先查询全量 后期有性能问题在优化
        return workbenchService.getById(super.getCompanyId());
    }

}
